package cn.hp.mapper;

import cn.hp.entity.Announcement;

import java.util.List;

public interface AnnouncementMapper {


    /**
     * 查询所有公告
     * @return
     */
    List<Announcement>findAnnouncement(Announcement announcement);

    /**
     * 新增公告
     * @param announcement
     * @return
     */
    int insertAnnouncement(Announcement announcement);

    /**
     * 删除公告
     * @param id
     * @return
     */
    int deleteAnnouncementById(Integer id);

    /**
     * 修改公告
     * @param announcement
     * @return
     */
    int updateAnnouncement(Announcement announcement);
}
